package com.etone.smartAudit.dto.admin;

import com.etone.smartAudit.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author: sovy
 * @date: 2020-06-13 17:42:25
 * @description:
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@ApiModel(value = "AdminRoleDTO", description = "角色")
public class AdminRoleDTO extends BaseDTO implements Serializable {

    @ApiModelProperty("角色名称")
    @NotBlank(message = "不能为空")
    private String name;

    @ApiModelProperty("角色编码")
    @NotBlank(message = "不能为空")
    private String code;

    @ApiModelProperty("角色编码")
    @NotNull(message = "不能为空")
    private Boolean isSupper;

    @ApiModelProperty("备注")
    private String remark;
}